import allure
from appium.webdriver.common.appiumby import AppiumBy

from base.xueqiu_app import XueQiu


class ResultPage(XueQiu):
    # def __init__(self, driver: WebDriver):
    #     self.driver = driver
    @allure.step('搜索结果')
    def result_search(self):
        # 结果页，查看文本
        res1 = self.find_ele_text(AppiumBy.ID, "com.xueqiu.android:id/stock_name_tv")
        self.screen()
        return res1